var express = require('express');

var app = express()


app.use(express.static('static'));
app.use(express.json());
app.use(express.urlencoded({
    extended: false
}));
var userRouter = require('./router/userRouter')
var goodRouter = require('./router/goodRouter')
app.use('/user', userRouter)
app.use('/good', goodRouter)
app.listen(1010, () => {
    console.log('服务端运行在: http://localhost:1010');
})